<?php

include_once '../Interfaces/XMLInterface.php';

class CommunicationException extends Exception implements XMLInterface{
	
	function __construct($message, $code) {
		parent::__construct($message,$code);
	}
	
	
	function toXML($mode) {
		return "
			<EXCEPTION>
				<TYPE>communication exception</TYPE>
				<MESSAGE>".$this->getMessage()."</MESSAGE>
			</EXCEPTION>
		";
		
	}
	
	function getElementStartTag() {
		return "<EXCEPTION>";
		
	}
	
	function getElementEndTag() {
		return "</EXCEPTION>";
		
	}
	
}
?>
